package com.yuanchu.store.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yuanchu.common.utils.PageUtils;
import com.yuanchu.common.utils.Query;
import com.yuanchu.store.dao.YoshopUserGradeLogDao;
import com.yuanchu.store.entity.YoshopUserGradeLogEntity;
import com.yuanchu.store.service.YoshopUserGradeLogService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("yoshopUserGradeLogService")
public class YoshopUserGradeLogServiceImpl extends ServiceImpl<YoshopUserGradeLogDao, YoshopUserGradeLogEntity> implements YoshopUserGradeLogService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<YoshopUserGradeLogEntity> page = this.page(
                new Query<YoshopUserGradeLogEntity>().getPage(params),
                new QueryWrapper<YoshopUserGradeLogEntity>()
        );

        return new PageUtils(page);
    }

}